1. Use any AI.
2. Attach PSPad-User-Script-Python-AI-Spec.md.
3. Prompt:
Based on the attached specification, create a PSPad editor user script that will <describe functionality>.
Menu item name: <your name in the Script menu>

4. Save the result as .py in UTF-8:
- portable: .\Script\Python\
- installed: %AppData%\PSPad\Script\Python\
  (a file of the same name here is used instead of the file next to the exe)

5. In PSPad settings, turn on scripting with external Python.
   Python of the same bitness as PSPad must be available through PATH.
6. In PSPad (if PSPad is already running): Script › Recompile scripts.
